package com.itbaizhan.shopping_order_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itbaizhan.shopping_common.pojo.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

// 订单Mapper
public interface OrdersMapper extends BaseMapper<Orders> {
	
	// 根据订单编号查询订单
	Orders findById(String id);
	
	// 查询用户订单
	List<Orders> findOrdersByUserIdAndStatus(@Param("userId") Long userId,
											 @Param("status") Integer status);
}
